package com.lrf.dao;

import com.lrf.domain.Lawyer;

import java.util.List;

/**
 * 对律师档案表进行操作：创建律师、修改律师、查询律师
 * @author lrf
 * @version 1.0
 * @classname LawyerDao
 * @date 2022/12/30 20:34
 */
public class LawyerDao {
    /**
     * 创建律师
     * @param lawyer 律师对象
     * @return 返回 1 表示添加成功，否则失败
     */
    public int createLawyer(Lawyer lawyer) {
        System.out.println("创建律师......");
        return 1;
    }

    /**
     * 修改律师
     * @param lawyer 律师对象
     * @return 返回 1 表示修改成功，否则失败
     */
    public int modifyLawyer(Lawyer lawyer) {
        System.out.println("修改律师......");
        return 1;
    }

    /**
     * 查询律师
     * @return 返回所有律师的集合 List
     */
    public List<Lawyer> findAllLawyer() {
        System.out.println("查询所有律师......");
        return null;
    }
}
